package com.hl.cons;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Description:测试读取props
 * @Author: hanle
 * @Date: 2019/05/28 09:35
 */
@Configuration
@PropertySource("classpath:props/demo.properties")
@Data
public class DemoConfig {

    @Value("${session_timeout}")
    private String sessionTimeout;
    @Value("${file_path}")
    private String filePath;
}
